package com.neugh.service.impl;

import com.neugh.entity.Real;
import com.neugh.mapper.RealMapper;
import com.neugh.service.RealService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
@Service
public class RealServiceImpl extends ServiceImpl<RealMapper, Real> implements RealService {

    @Override
    public Real seleReaList(Integer userId) {
        return this.baseMapper.seleReaList(userId);
    }

    @Override
    public boolean addRel(double realFee, double realBill, double realWater, double realPrick, Integer userId) {
        return this.baseMapper.addRel(realFee,realBill,realWater,realPrick,userId);
    }

    @Override
    public List<Real> selectList(Integer userId) {
        return this.baseMapper.selectList(userId);
    }

   /* @Override
    public Real addRel(Real real) {
        return this.baseMapper.addRel(real);
    }*/
}
